package A14_Stream流式计算;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author: KingWang
 * @Date: 2021/5/25
 * @Desc:
 **/
public class StreamDemo {

    public static void main(String[] args) {
        Integer[] arr = {1,2,3,4,5,6,7,8,9,10};
        List<Integer> list = Arrays.asList(arr);
        list.stream().map(x-> x*2).collect(Collectors.toList());

        Integer[] a1 = {2,4,6,8,10};
        Integer[] a2 = {3,5,7,8};
        Integer[] a3 = {11,13,15,17};
        Integer[][] aa = {a1,a2,a3};



    }


}
